//
//  MKAnalytics.h
//  MKAnalytics
//
//  Created by zhuwh on 2017/1/18.
//  Copyright © 2017年 mark. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <MAKSingleton.h>

#define MAKAnalyticsConfigInstance [MAKAnalyticsConfig sharedInstance]
@interface MAKAnalyticsConfig : NSObject
/** required:  appkey string */
@property(nonatomic, copy) NSString *appKey;
/** optional:  default: nil*/
@property(nonatomic, copy) NSString *secret;
/** optional:  default: "App Store"*/
@property(nonatomic, copy) NSString *channelId;
/** optional:  default: YES */
@property(nonatomic) BOOL  bCrashReportEnabled;

@property(nonatomic, copy) NSArray*  ignoreList;

SingletonH(Instance);

@end

@interface MAKAnalytics : NSObject

+(void)logEvent:(NSString*)eventId;
+(void)logEvent:(NSString*)eventId attributes:(NSDictionary *)attributes;
+ (void) startWithConfigure:(MAKAnalyticsConfig*)configure;
+(void) setLogEnabled:(BOOL)enabled;

@end
